A bash script for unixy systems (such as Mac), to help archive your last.fm feed. Last.fm holds the copyright in the data feeds but they publish them under a creative commons licensing scheme, so there should be no problem in you archiving your own listening history. Or even other people's listening histories, which is a bit spooky.
To install/use: make sure you have "curl" and "xmlstarlet" installed, then save this file (lastfmarchive.bash) somewhere useful. You invoke it using a command along the lines of: